package com.wandian.audio.adapter;


import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.makeramen.roundedimageview.RoundedImageView;
import com.mylib.libcore.utils.GlideUtil;
import com.wandian.audio.R;
import com.wandian.audio.bean.TopRankBean;

/**
 * topRank-适配器
 */
public class AudioTopRankRecycleAdapter extends BaseQuickAdapter<TopRankBean.ListEntity, BaseViewHolder> {

    public AudioTopRankRecycleAdapter(int layoutResId) {
        super(layoutResId);
    }


    @Override
    protected void convert(BaseViewHolder helper, TopRankBean.ListEntity item) {
        RoundedImageView iv_author_head = helper.getView(R.id.iv_top_head);
        GlideUtil.into(mContext,item.getCoverImgUrl(),iv_author_head);
        helper.setText(R.id.tv_top_name, item.getName()+"");

    }

}
